package com.ruoyi.elasticsearch.dao;


import com.ruoyi.elasticsearch.entity.Article;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description: 仓库类接口
 * @author: liyang
 * @date: 2025/7/21 15:36
 **/
@Repository
public interface ArticleRepository extends ElasticsearchRepository<Article, String> {

    List<Article> findByTitleContaining(String keyword);

}
